package com.etp.dao.impl;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

import com.etp.dao.beans.LoginBean;
import com.etp.dao.interfaces.ILogin;
import com.etp.db.utils.DBConnection;

public class LoginImpl implements ILogin {

	@Override
	public boolean validateLogin(LoginBean loginBean) throws SQLException {
		return true;
//		DBConnection.connectToDB();
//		Statement stmt = DBConnection.dataSource.getConnection().createStatement();
//		String query = "SELECT * FROM COM_USER WHERE LOGINNAME='" + loginBean.getUserName().trim() + 
//				"' AND PASSWORD='" + loginBean.getPswd().trim() + "'";
//		System.out.println(query);
//		ResultSet res = stmt.executeQuery(query);
//		if(res.next()){
//			return true;
//		}
//		
//		return false;
	}

}
